/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaclientcp3110.Model.Product;

import common.DAO.Factory.DAOFactory;
import common.Objects.Product;

/**
 *
 * @author Slasher
 */
public class ProductAddModel {
    private Product newProduct;

    public ProductAddModel() {
        newProduct = new Product();
    }

    public Product getNewProduct() {
        return newProduct;
    }
    
    public boolean addNewProduct() {
       return DAOFactory.getDAOFactory().getProductDAO().createProduct(newProduct);
    }

    public void setNewProduct(Product newProduct) {
        this.newProduct = newProduct;
    }

    
}
